package com.hzhr.iot.collect.controller;

import com.hzhr.iot.collect.controller.base.BaseController;
import com.hzhr.iot.collect.model.command.addMeter.AddMeterModel;
import com.hzhr.iot.collect.model.command.addMeter.AddMeterResponse;
import com.hzhr.iot.collect.model.command.allowOpenValve.AllowOpenValveModel;
import com.hzhr.iot.collect.model.command.allowOpenValve.AllowOpenValveResponse;
import com.hzhr.iot.collect.model.command.chongqi.ChongqiModel;
import com.hzhr.iot.collect.model.command.chongqi.ChongqiResponse;
import com.hzhr.iot.collect.model.command.clearFault.ClearFaultModel;
import com.hzhr.iot.collect.model.command.clearFault.ClearFaultResponse;
import com.hzhr.iot.collect.model.command.closeValve.CloseValveModel;
import com.hzhr.iot.collect.model.command.closeValve.CloseValveResponse;
import com.hzhr.iot.collect.model.command.closeValve1.CloseValve1Model;
import com.hzhr.iot.collect.model.command.closeValve1.CloseValve1Response;
import com.hzhr.iot.collect.model.command.collect.CollectModel;
import com.hzhr.iot.collect.model.command.collect.CollectResponse;
import com.hzhr.iot.collect.model.command.command_2_1025.Command_2_1025Model;
import com.hzhr.iot.collect.model.command.command_2_1025.Command_2_1025Response;
import com.hzhr.iot.collect.model.command.delMeter.DelMeterModel;
import com.hzhr.iot.collect.model.command.delMeter.DelMeterResponse;
import com.hzhr.iot.collect.model.command.jichao.JichaoModel;
import com.hzhr.iot.collect.model.command.jichao.JichaoResponse;
import com.hzhr.iot.collect.model.command.openValve.OpenValveModel;
import com.hzhr.iot.collect.model.command.openValve.OpenValveResponse;
import com.hzhr.iot.collect.model.command.openValve1.OpenValve1Model;
import com.hzhr.iot.collect.model.command.openValve1.OpenValve1Response;
import com.hzhr.iot.collect.model.command.searchAlarm.SearchAlarmModel;
import com.hzhr.iot.collect.model.command.searchAlarm.SearchAlarmResponse;
import com.hzhr.iot.collect.model.command.searchConcentratorClock.SearchConcentratorClockModel;
import com.hzhr.iot.collect.model.command.searchConcentratorClock.SearchConcentratorClockResponse;
import com.hzhr.iot.collect.model.command.searchDayHis.SearchDayHisModel;
import com.hzhr.iot.collect.model.command.searchDayHis.SearchDayHisResponse;
import com.hzhr.iot.collect.model.command.searchFreezingDay.SearchFreezingDayModel;
import com.hzhr.iot.collect.model.command.searchFreezingDay.SearchFreezingDayResponse;
import com.hzhr.iot.collect.model.command.searchHeartPeriod.SearchHeartPeriodModel;
import com.hzhr.iot.collect.model.command.searchHeartPeriod.SearchHeartPeriodResponse;
import com.hzhr.iot.collect.model.command.searchIp.SearchIpModel;
import com.hzhr.iot.collect.model.command.searchIp.SearchIpResponse;
import com.hzhr.iot.collect.model.command.searchMeter.SearchMeterModel;
import com.hzhr.iot.collect.model.command.searchMeter.SearchMeterResponse;
import com.hzhr.iot.collect.model.command.searchMonthHis.SearchMonthHisModel;
import com.hzhr.iot.collect.model.command.searchMonthHis.SearchMonthHisResponse;
import com.hzhr.iot.collect.model.command.searchParam.SearchParamModel;
import com.hzhr.iot.collect.model.command.searchParam.SearchParamResponse;
import com.hzhr.iot.collect.model.command.searchReportPeriod.SearchReportPeriodModel;
import com.hzhr.iot.collect.model.command.searchReportPeriod.SearchReportPeriodResponse;
import com.hzhr.iot.collect.model.command.searchReportTime.SearchReportTimeModel;
import com.hzhr.iot.collect.model.command.searchReportTime.SearchReportTimeResponse;
import com.hzhr.iot.collect.model.command.searchValveStatus.SearchValveStatusModel;
import com.hzhr.iot.collect.model.command.searchValveStatus.SearchValveStatusResponse;
import com.hzhr.iot.collect.model.command.setAlarmValue.SetAlarmValueModel;
import com.hzhr.iot.collect.model.command.setAlarmValue.SetAlarmValueResponse;
import com.hzhr.iot.collect.model.command.setCollectFrequency.SetCollectFrequencyModel;
import com.hzhr.iot.collect.model.command.setCollectFrequency.SetCollectFrequencyResponse;
import com.hzhr.iot.collect.model.command.setConcentratorClock.SetConcentratorClockModel;
import com.hzhr.iot.collect.model.command.setConcentratorClock.SetConcentratorClockResponse;
import com.hzhr.iot.collect.model.command.setFreezingDay.SetFreezingDayModel;
import com.hzhr.iot.collect.model.command.setFreezingDay.SetFreezingDayResponse;
import com.hzhr.iot.collect.model.command.setHeartPeriod.SetHeartPeriodModel;
import com.hzhr.iot.collect.model.command.setHeartPeriod.SetHeartPeriodResponse;
import com.hzhr.iot.collect.model.command.setIotDeviceId.SetIotDeviceIdModel;
import com.hzhr.iot.collect.model.command.setIotDeviceId.SetIotDeviceIdResponse;
import com.hzhr.iot.collect.model.command.setIp.SetIpModel;
import com.hzhr.iot.collect.model.command.setIp.SetIpResponse;
import com.hzhr.iot.collect.model.command.setNewMeterNo.SetNewMeterNoModel;
import com.hzhr.iot.collect.model.command.setNewMeterNo.SetNewMeterNoResponse;
import com.hzhr.iot.collect.model.command.setReportFrequency.SetReportFrequencyModel;
import com.hzhr.iot.collect.model.command.setReportFrequency.SetReportFrequencyResponse;
import com.hzhr.iot.collect.model.command.setReportPeriod.SetReportPeriodModel;
import com.hzhr.iot.collect.model.command.setReportPeriod.SetReportPeriodResponse;
import com.hzhr.iot.collect.model.command.setReportTime.SetReportTimeModel;
import com.hzhr.iot.collect.model.command.setReportTime.SetReportTimeResponse;
import com.hzhr.iot.collect.service.CommandService;
import com.hzhr.iot.core.annotation.ApiImplicitInternalParams;
import com.hzhr.iot.core.annotation.Author;
import com.hzhr.iot.core.exception.ServiceException;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import java.util.Map;

@Api(tags = "command", description = "命令相关服务")
@RestController
@RequestMapping(value = "")
public class CommandController extends BaseController {
    @Autowired
    CommandService commandService;

    //region /commands/{protocolId}/searchIp POST
    //region swagger响应码 : searchIp
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : searchIp
    @ApiOperation(value="发送指令：查询设备ip", notes="发送指令：查询设备ip  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : searchIp
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : searchIp
    @RequestMapping(value = "/commands/{protocolId}/searchIp", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchIpResponse> searchIp(@PathVariable("protocolId") Integer protocolId,
                                                     @RequestParam @ApiIgnore Map<String, Object> query,
                                                     @RequestBody SearchIpModel body) throws ServiceException {
        SearchIpResponse responseBody = commandService.searchIp(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/setIp POST
    //region swagger响应码 : setIp
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : setIp
    @ApiOperation(value="发送指令：设置设备ip", notes="发送指令：设置设备ip  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : setIp
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : setIp
    @RequestMapping(value = "/commands/{protocolId}/setIp", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SetIpResponse> setIp(@PathVariable("protocolId") Integer protocolId,
                                               @RequestParam @ApiIgnore Map<String, Object> query,
                                               @RequestBody SetIpModel body) throws ServiceException {
        SetIpResponse responseBody = commandService.setIp(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/setIp POST
    //region swagger响应码 : setIotDeviceId
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : setIotDeviceId
    @ApiOperation(value="发送指令：设置设备号", notes="发送指令：设置设备号  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : setIotDeviceId
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : setIotDeviceId
    @RequestMapping(value = "/commands/{protocolId}/setIotDeviceId", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SetIotDeviceIdResponse> setIotDeviceId(@PathVariable("protocolId") Integer protocolId,
                                                                 @RequestParam @ApiIgnore Map<String, Object> query,
                                                                 @RequestBody SetIotDeviceIdModel body) throws ServiceException {
        SetIotDeviceIdResponse responseBody = commandService.setIotDeviceId(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/setReportTime POST
    //region swagger响应码 : setReportTime
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : setReportTime
    @ApiOperation(value="发送指令：设置设备自醒上报时间", notes="发送指令：设置设备自醒上报时间  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : setReportTime
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : setReportTime
    @RequestMapping(value = "/commands/{protocolId}/setReportTime", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SetReportTimeResponse> setReportTime(@PathVariable("protocolId") Integer protocolId,
                                                               @RequestParam @ApiIgnore Map<String, Object> query,
                                                               @RequestBody SetReportTimeModel body) throws ServiceException {
        SetReportTimeResponse responseBody = commandService.setReportTime(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/searchReportTime POST
    //region swagger响应码 : searchReportTime
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : searchReportTime
    @ApiOperation(value="发送指令：查询设备自醒上报时间", notes="发送指令：查询设备自醒上报时间  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : searchReportTime
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : searchReportTime
    @RequestMapping(value = "/commands/{protocolId}/searchReportTime", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchReportTimeResponse> searchReportTime(@PathVariable("protocolId") Integer protocolId,
                                                                     @RequestParam @ApiIgnore Map<String, Object> query,
                                                                     @RequestBody SearchReportTimeModel body) throws ServiceException {
        SearchReportTimeResponse responseBody = commandService.searchReportTime(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/setReportPeriod POST
    //region swagger响应码 : setReportPeriod
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : setReportPeriod
    @ApiOperation(value="发送指令：设置设备上报周期", notes="发送指令：设置设备上报周期  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : setReportPeriod
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : setReportPeriod
    @RequestMapping(value = "/commands/{protocolId}/setReportPeriod", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SetReportPeriodResponse> setReportPeriod(@PathVariable("protocolId") Integer protocolId,
                                                                   @RequestParam @ApiIgnore Map<String, Object> query,
                                                                   @RequestBody SetReportPeriodModel body) throws ServiceException {
        SetReportPeriodResponse responseBody = commandService.setReportPeriod(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/searchReportPeriod POST
    //region swagger响应码 : searchReportPeriod
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : searchReportPeriod
    @ApiOperation(value="发送指令：查询设备上报周期", notes="发送指令：查询设备上报周期  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : searchReportPeriod
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : searchReportPeriod
    @RequestMapping(value = "/commands/{protocolId}/searchReportPeriod", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchReportPeriodResponse> searchReportPeriod(@PathVariable("protocolId") Integer protocolId,
                                                                         @RequestParam @ApiIgnore Map<String, Object> query,
                                                                         @RequestBody SearchReportPeriodModel body) throws ServiceException {
        SearchReportPeriodResponse responseBody = commandService.searchReportPeriod(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/searchFreezingDay POST
    //region swagger响应码 : searchFreezingDay
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : searchFreezingDay
    @ApiOperation(value="发送指令：查询冻结日", notes="发送指令：查询冻结日  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : searchFreezingDay
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : searchFreezingDay
    @RequestMapping(value = "/commands/{protocolId}/searchFreezingDay", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchFreezingDayResponse> searchFreezingDay(@PathVariable("protocolId") Integer protocolId,
                                                                       @RequestParam @ApiIgnore Map<String, Object> query,
                                                                       @RequestBody SearchFreezingDayModel body) throws ServiceException {
        SearchFreezingDayResponse responseBody = commandService.searchFreezingDay(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/setFreezingDay POST
    //region swagger响应码 : setFreezingDay
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : setFreezingDay
    @ApiOperation(value="发送指令：设置冻结日", notes="发送指令：设置冻结日  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : setFreezingDay
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : setFreezingDay
    @RequestMapping(value = "/commands/{protocolId}/setFreezingDay", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SetFreezingDayResponse> setFreezingDay(@PathVariable("protocolId") Integer protocolId,
                                                                 @RequestParam @ApiIgnore Map<String, Object> query,
                                                                 @RequestBody SetFreezingDayModel body) throws ServiceException {
        SetFreezingDayResponse responseBody = commandService.setFreezingDay(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/openValve POST
    //region swagger响应码 : openValve
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : openValve
    @ApiOperation(value="发送指令：开阀", notes="发送指令：开阀  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : openValve
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : openValve
    @RequestMapping(value = "/commands/{protocolId}/openValve", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<OpenValveResponse> openValve(@PathVariable("protocolId") Integer protocolId,
                                                       @RequestParam @ApiIgnore Map<String, Object> query,
                                                       @RequestBody OpenValveModel body) throws ServiceException {
        OpenValveResponse responseBody = commandService.openValve(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/closeValve POST
    //region swagger响应码 : closeValve
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : closeValve
    @ApiOperation(value="发送指令：关阀", notes="发送指令：关阀  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : closeValve
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : closeValve
    @RequestMapping(value = "/commands/{protocolId}/closeValve", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<CloseValveResponse> closeValve(@PathVariable("protocolId") Integer protocolId,
                                                         @RequestParam @ApiIgnore Map<String, Object> query,
                                                         @RequestBody CloseValveModel body) throws ServiceException {
        CloseValveResponse responseBody = commandService.closeValve(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/allowOpenValve POST
    //region swagger响应码 : allowOpenValve
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : allowOpenValve
    @ApiOperation(value="发送指令：允许开阀", notes="发送指令：允许开阀  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : allowOpenValve
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : allowOpenValve
    @RequestMapping(value = "/commands/{protocolId}/allowOpenValve", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<AllowOpenValveResponse> allowOpenValve(@PathVariable("protocolId") Integer protocolId,
                                                                 @RequestParam @ApiIgnore Map<String, Object> query,
                                                                 @RequestBody AllowOpenValveModel body) throws ServiceException {
        AllowOpenValveResponse responseBody = commandService.allowOpenValve(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/clearFault POST
    //region swagger响应码 : clearFault
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : clearFault
    @ApiOperation(value="发送指令：清除故障", notes="发送指令：清除故障  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : clearFault
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : clearFault
    @RequestMapping(value = "/commands/{protocolId}/clearFault", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<ClearFaultResponse> clearFault(@PathVariable("protocolId") Integer protocolId,
                                                         @RequestParam @ApiIgnore Map<String, Object> query,
                                                         @RequestBody ClearFaultModel body) throws ServiceException {
        ClearFaultResponse responseBody = commandService.clearFault(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/searchDayHis POST
    //region swagger响应码 : searchDayHis
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : searchDayHis
    @ApiOperation(value="发送指令：查询日用量历史记录", notes="发送指令：查询日用量历史记录  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : searchDayHis
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : searchDayHis
    @RequestMapping(value = "/commands/{protocolId}/searchDayHis", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchDayHisResponse> searchDayHis(@PathVariable("protocolId") Integer protocolId,
                                                             @RequestParam @ApiIgnore Map<String, Object> query,
                                                             @RequestBody SearchDayHisModel body) throws ServiceException {
        SearchDayHisResponse responseBody = commandService.searchDayHis(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/searchMonthHis POST
    //region swagger响应码 : searchMonthHis
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : searchMonthHis
    @ApiOperation(value="发送指令：查询月用量历史记录", notes="发送指令：查询月用量历史记录  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : searchMonthHis
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : searchMonthHis
    @RequestMapping(value = "/commands/{protocolId}/searchMonthHis", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchMonthHisResponse> searchMonthHis(@PathVariable("protocolId") Integer protocolId,
                                                                 @RequestParam @ApiIgnore Map<String, Object> query,
                                                                 @RequestBody SearchMonthHisModel body) throws ServiceException {
        SearchMonthHisResponse responseBody = commandService.searchMonthHis(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/searchAlarm POST
    //region swagger响应码 : searchAlarm
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : searchAlarm
    @ApiOperation(value="发送指令：查询异常报警信息", notes="发送指令：查询异常报警信息  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : searchAlarm
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : searchAlarm
    @RequestMapping(value = "/commands/{protocolId}/searchAlarm", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchAlarmResponse> searchAlarm(@PathVariable("protocolId") Integer protocolId,
                                                           @RequestParam @ApiIgnore Map<String, Object> query,
                                                           @RequestBody SearchAlarmModel body) throws ServiceException {
        SearchAlarmResponse responseBody = commandService.searchAlarm(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/setAlarmValue POST
    //region swagger响应码 : setAlarmValue
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : setAlarmValue
    @ApiOperation(value="发送指令：设置报警阈值", notes="发送指令：设置报警阈值  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : setAlarmValue
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : setAlarmValue
    @RequestMapping(value = "/commands/{protocolId}/setAlarmValue", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SetAlarmValueResponse> setAlarmValue(@PathVariable("protocolId") Integer protocolId,
                                                               @RequestParam @ApiIgnore Map<String, Object> query,
                                                               @RequestBody SetAlarmValueModel body) throws ServiceException {
        SetAlarmValueResponse responseBody = commandService.setAlarmValue(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/setCollectFrequency POST
    //region swagger响应码 : setCollectFrequency
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : setCollectFrequency
    @ApiOperation(value="发送指令：设置采样频率", notes="发送指令：设置采样频率  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : setCollectFrequency
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : setCollectFrequency
    @RequestMapping(value = "/commands/{protocolId}/setCollectFrequency", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SetCollectFrequencyResponse> setCollectFrequency(@PathVariable("protocolId") Integer protocolId,
                                                                           @RequestParam @ApiIgnore Map<String, Object> query,
                                                                           @RequestBody SetCollectFrequencyModel body) throws ServiceException {
        SetCollectFrequencyResponse responseBody = commandService.setCollectFrequency(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/setReportFrequency POST
    //region swagger响应码 : setReportFrequency
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : setReportFrequency
    @ApiOperation(value="发送指令：设置上报频率", notes="发送指令：设置上报频率  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : setReportFrequency
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : setReportFrequency
    @RequestMapping(value = "/commands/{protocolId}/setReportFrequency", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SetReportFrequencyResponse> setReportFrequency(@PathVariable("protocolId") Integer protocolId,
                                                                         @RequestParam @ApiIgnore Map<String, Object> query,
                                                                         @RequestBody SetReportFrequencyModel body) throws ServiceException {
        SetReportFrequencyResponse responseBody = commandService.setReportFrequency(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/searchParam POST
    //region swagger响应码 : searchParam
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : searchParam
    @ApiOperation(value="发送指令：查询设备参数", notes="发送指令：查询设备参数  \n范围 : 内部服务  \n步骤 :  \n1. 缓存指令; (√)  \n",produces = "application/json")
    //endregion
    //region swagger参数 : searchParam
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : searchParam
    @RequestMapping(value = "/commands/{protocolId}/searchParam", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchParamResponse> searchParam(@PathVariable("protocolId") Integer protocolId,
                                                           @RequestParam @ApiIgnore Map<String, Object> query,
                                                           @RequestBody SearchParamModel body) throws ServiceException {
        SearchParamResponse responseBody = commandService.searchParam(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/setHeartPeriod
    //region swagger响应码 : ccr_setHeartPeriod
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_setHeartPeriod
    @ApiOperation(value="集中器心跳周期设置", notes="集中器心跳周期设置  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_setHeartPeriod
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_setHeartPeriod
    @RequestMapping(value = "/commands/{protocolId}/ccr/setHeartPeriod", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SetHeartPeriodResponse> ccr_setHeartPeriod(@PathVariable("protocolId") Integer protocolId,
                                                           @RequestParam @ApiIgnore Map<String, Object> query,
                                                           @RequestBody SetHeartPeriodModel body) throws ServiceException {
        SetHeartPeriodResponse responseBody = commandService.ccr_setHeartPeriod(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/searchHeartPeriod
    //region swagger响应码 : ccr_searchHeartPeriod
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_searchHeartPeriod
    @ApiOperation(value="集中器心跳周期查询", notes="集中器心跳周期查询  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_searchHeartPeriod
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_searchHeartPeriod
    @RequestMapping(value = "/commands/{protocolId}/ccr/searchHeartPeriod", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchHeartPeriodResponse> ccr_searchHeartPeriod(@PathVariable("protocolId") Integer protocolId,
                                                                           @RequestParam @ApiIgnore Map<String, Object> query,
                                                                           @RequestBody SearchHeartPeriodModel body) throws ServiceException {
        SearchHeartPeriodResponse responseBody = commandService.ccr_searchHeartPeriod(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/setConcentratorClock
    //region swagger响应码 : ccr_setConcentratorClock
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_setConcentratorClock
    @ApiOperation(value="集中器时钟设置", notes="集中器时钟设置  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_setConcentratorClock
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_setConcentratorClock
    @RequestMapping(value = "/commands/{protocolId}/ccr/setConcentratorClock", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SetConcentratorClockResponse> ccr_setConcentratorClock(@PathVariable("protocolId") Integer protocolId,
                                                                                 @RequestParam @ApiIgnore Map<String, Object> query,
                                                                                 @RequestBody SetConcentratorClockModel body) throws ServiceException {
        SetConcentratorClockResponse responseBody = commandService.ccr_setConcentratorClock(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/searchConcentratorClock
    //region swagger响应码 : ccr_searchConcentratorClock
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_searchConcentratorClock
    @ApiOperation(value="集中器时钟查询", notes="集中器时钟查询  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_searchConcentratorClock
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_searchConcentratorClock
    @RequestMapping(value = "/commands/{protocolId}/ccr/searchConcentratorClock", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchConcentratorClockResponse> ccr_searchConcentratorClock(@PathVariable("protocolId") Integer protocolId,
                                                                                       @RequestParam @ApiIgnore Map<String, Object> query,
                                                                                       @RequestBody SearchConcentratorClockModel body) throws ServiceException {
        SearchConcentratorClockResponse responseBody = commandService.ccr_searchConcentratorClock(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/collect
    //region swagger响应码 : ccr_collect
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_collect
    @ApiOperation(value="单表实时抄表", notes="单表实时抄表  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_collect
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_collect
    @RequestMapping(value = "/commands/{protocolId}/ccr/collect", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<CollectResponse> ccr_collect(@PathVariable("protocolId") Integer protocolId,
                                                       @RequestParam @ApiIgnore Map<String, Object> query,
                                                       @RequestBody CollectModel body) throws ServiceException {
        CollectResponse responseBody = commandService.ccr_collect(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/openValve
    //region swagger响应码 : ccr_openValve
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_openValve
    @ApiOperation(value="单表开阀", notes="单表开阀  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_openValve
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_openValve
    @RequestMapping(value = "/commands/{protocolId}/ccr/openValve", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<OpenValve1Response> ccr_openValve(@PathVariable("protocolId") Integer protocolId,
                                                            @RequestParam @ApiIgnore Map<String, Object> query,
                                                            @RequestBody OpenValve1Model body) throws ServiceException {
        OpenValve1Response responseBody = commandService.ccr_openValve(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/closeValve
    //region swagger响应码 : ccr_closeValve
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_closeValve
    @ApiOperation(value="单表关阀", notes="单表关阀  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_closeValve
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_closeValve
    @RequestMapping(value = "/commands/{protocolId}/ccr/closeValve", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<CloseValve1Response> ccr_closeValve(@PathVariable("protocolId") Integer protocolId,
                                                              @RequestParam @ApiIgnore Map<String, Object> query,
                                                              @RequestBody CloseValve1Model body) throws ServiceException {
        CloseValve1Response responseBody = commandService.ccr_closeValve(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/searchValveStatus
    //region swagger响应码 : ccr_searchValveStatus
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_searchValveStatus
    @ApiOperation(value="阀门状态查询", notes="阀门状态查询  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_searchValveStatus
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_searchValveStatus
    @RequestMapping(value = "/commands/{protocolId}/ccr/searchValveStatus", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchValveStatusResponse> ccr_searchValveStatus(@PathVariable("protocolId") Integer protocolId,
                                                                           @RequestParam @ApiIgnore Map<String, Object> query,
                                                                           @RequestBody SearchValveStatusModel body) throws ServiceException {
        SearchValveStatusResponse responseBody = commandService.ccr_searchValveStatus(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/addMeter
    //region swagger响应码 : ccr_addMeter
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_addMeter
    @ApiOperation(value="集中器增加下级表具", notes="集中器增加下级表具  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_addMeter
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_addMeter
    @RequestMapping(value = "/commands/{protocolId}/ccr/addMeter", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<AddMeterResponse> ccr_addMeter(@PathVariable("protocolId") Integer protocolId,
                                                         @RequestParam @ApiIgnore Map<String, Object> query,
                                                         @RequestBody AddMeterModel body) throws ServiceException {
        AddMeterResponse responseBody = commandService.ccr_addMeter(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/delMeter
    //region swagger响应码 : ccr_delMeter
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_delMeter
    @ApiOperation(value="集中器删除下级表具", notes="集中器删除下级表具  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_delMeter
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_delMeter
    @RequestMapping(value = "/commands/{protocolId}/ccr/delMeter", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<DelMeterResponse> ccr_delMeter(@PathVariable("protocolId") Integer protocolId,
                                                         @RequestParam @ApiIgnore Map<String, Object> query,
                                                         @RequestBody DelMeterModel body) throws ServiceException {
        DelMeterResponse responseBody = commandService.ccr_delMeter(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/searchMeter
    //region swagger响应码 : ccr_searchMeter
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_searchMeter
    @ApiOperation(value="集中器下级表具查询", notes="集中器下级表具查询  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_searchMeter
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_searchMeter
    @RequestMapping(value = "/commands/{protocolId}/ccr/searchMeter", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SearchMeterResponse> ccr_searchMeter(@PathVariable("protocolId") Integer protocolId,
                                                               @RequestParam @ApiIgnore Map<String, Object> query,
                                                               @RequestBody SearchMeterModel body) throws ServiceException {
        SearchMeterResponse responseBody = commandService.ccr_searchMeter(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/jichao
    //region swagger响应码 : ccr_jichao
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_jichao
    @ApiOperation(value="集抄", notes="集抄  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_jichao
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_jichao
    @RequestMapping(value = "/commands/{protocolId}/ccr/jichao", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<JichaoResponse> ccr_jichao(@PathVariable("protocolId") Integer protocolId,
                                                     @RequestParam @ApiIgnore Map<String, Object> query,
                                                     @RequestBody JichaoModel body) throws ServiceException {
        JichaoResponse responseBody = commandService.ccr_jichao(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/ccr/chongqi
    //region swagger响应码 : ccr_chongqi
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : ccr_chongqi
    @ApiOperation(value="集中器重启", notes="集中器重启  \n",produces = "application/json")
    //endregion
    //region swagger参数 : ccr_chongqi
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : ccr_chongqi
    @RequestMapping(value = "/commands/{protocolId}/ccr/chongqi", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<ChongqiResponse> ccr_chongqi(@PathVariable("protocolId") Integer protocolId,
                                                       @RequestParam @ApiIgnore Map<String, Object> query,
                                                       @RequestBody ChongqiModel body) throws ServiceException {
        ChongqiResponse responseBody = commandService.ccr_chongqi(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/{protocolId}/nb/setNewMeterNo POST
    //region swagger响应码 : nb_setNewMeterNo
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : nb_setNewMeterNo
    @ApiOperation(value="设置新表号", notes="设置新表号  \n",produces = "application/json")
    //endregion
    //region swagger参数 : nb_setNewMeterNo
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),

            @ApiImplicitParam(name = "protocolId", value = "协议编号",required = true, dataType = "int", paramType = "path"),

    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : nb_setNewMeterNo
    @RequestMapping(value = "/commands/{protocolId}/nb/setNewMeterNo", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<SetNewMeterNoResponse> nb_setNewMeterNo(@PathVariable("protocolId") Integer protocolId,
                                                                  @RequestParam @ApiIgnore Map<String, Object> query,
                                                                  @RequestBody SetNewMeterNoModel body) throws ServiceException {
        SetNewMeterNoResponse responseBody = commandService.nb_setNewMeterNo(initHeader(), protocolId, query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion

    //region /commands/2/1025 POST
    //region swagger响应码 : command_2_1025
    @ApiResponses({
            @ApiResponse(code = 200, message = "成功"),
    })
    //endregion
    //region swagger说明 : command_2_1025
    @ApiOperation(value="协议：2 功能码1025", notes="协议：2 功能码1025  \n",produces = "application/json")
    //endregion
    //region swagger参数 : command_2_1025
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌",required = true, dataType = "string", paramType = "header"),
    })
    @ApiImplicitInternalParams({
            @ApiImplicitParam(name = "_token", value = "令牌",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-id", value = "用户编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-code", value = "用户代码",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-name", value = "用户名",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-company-id", value = "公司编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-dept-id", value = "部门编号",required = true, dataType = "int", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-user-type", value = "用户类型(关联: common_service.options.code, typeCode = 'USER_TYPE')",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-id", value = "交易流水号",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-transaction-type", value = "交易类型",required = true, dataType = "string", paramType = "header"),
            @ApiImplicitParam(name = "_hzhr-access-mode", value = "访问模式 0:一般 1:全局",defaultValue = "0", required = false, dataType = "int", paramType = "header"),
    })
    //endregion
    //region 请求 : command_2_1025
    @RequestMapping(value = "/commands/2/1025", method = RequestMethod.POST)
    //endregion
    @Author
    public ResponseEntity<Command_2_1025Response> command_2_1025(@RequestParam @ApiIgnore Map<String, Object> query,
                                                                 @RequestBody Command_2_1025Model body) throws ServiceException {
        Command_2_1025Response responseBody = commandService.command_2_1025(initHeader(), query, body);
        return new ResponseEntity<>(responseBody, HttpStatus.OK);
    }
    //endregion
}


















































